package com.vini.core.ec;

// Generated 17 Oct, 2013 11:10:51 PM by Hibernate Tools 3.4.0.CR1

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.UniqueConstraint;

/**
 * UserProfilepic generated by hbm2java
 */
@Entity
@Table(name = "user_profilepic", catalog = "hopon", uniqueConstraints = @UniqueConstraint(columnNames = "user_id"))
public class UserProfilepic implements java.io.Serializable {

	private Integer id;
	private int userId;
	private String imageName;
	private Date createdDt;
	private Date updatedDt;

	public UserProfilepic() {
	}

	public UserProfilepic(int userId, String imageName, Date createdDt,
			Date updatedDt) {
		this.userId = userId;
		this.imageName = imageName;
		this.createdDt = createdDt;
		this.updatedDt = updatedDt;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "user_id", unique = true, nullable = false)
	public int getUserId() {
		return this.userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	@Column(name = "image_name", nullable = false)
	public String getImageName() {
		return this.imageName;
	}

	public void setImageName(String imageName) {
		this.imageName = imageName;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "created_dt", nullable = false, length = 19)
	public Date getCreatedDt() {
		return this.createdDt;
	}

	public void setCreatedDt(Date createdDt) {
		this.createdDt = createdDt;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "updated_dt", nullable = false, length = 19)
	public Date getUpdatedDt() {
		return this.updatedDt;
	}

	public void setUpdatedDt(Date updatedDt) {
		this.updatedDt = updatedDt;
	}

}
